{include file="public/header"}
<body>
	<div class="sectionY">
		<a href="javascript:history.back();">
			<img src="__PUBLIC__/home/images/a19.png" alt="" class="a1">
		</a>
		<p class="p1">修改密码</p>
	</div>
	<div class="kong1" style=""></div>
	<div class="res_section1">
		<form action="">
			<div class="f1 clearfix">
				<img src="__PUBLIC__/home/images/login_icon_pw.png" alt="" style="width:21px;left: 21px;">
				<input type="password" id="pwd" class="input1" placeholder="请填写原密码">
			</div>
			<div class="f1 clearfix">
				<img src="__PUBLIC__/home/images/login_icon_pw.png" alt="" style="width:21px;left: 21px;">
				<input type="password" id="pwd1" class="input1" placeholder="请填写新密码">
			</div>
			<div class="f1 clearfix">
				<img src="__PUBLIC__/home/images/login_icon_pw.png" alt="" style="width:21px;left: 21px;">
				<input type="password" id="pwd2" class="input1" placeholder="请确认新密码">
			</div>
			<div class="sub">
				<input type="button" id="submit" value="确定">
			</div>
		</form>
	</div>
</body>
<script>
	$(function(){
		$("#submit").click(function () {
			let pwd = $("#pwd").val(),pwd1 = $("#pwd1").val(),pwd2 = $("#pwd2").val();
			if(pwd == "" || pwd1=="" ||pwd2==""){
				modal.msg("密码不能为空");
				return;
			}
			if(pwd1 != pwd2){
				modal.msg("新密码两次输入不同");
				return;
			}
			$.post(location.href, {pwd:pwd,pwd1:pwd1,pwd2:pwd2}, function (res) {
				modal.msg(res.result_info);
				if(res.result_code == 0){
					setTimeout(function () {
						history.back();
					}, 666);
				}
			});
		});

	})
</script>
</html>